<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
    <title>H5滚动条</title>


    <style>

        .box{
            height: 100px;
            margin-bottom: 50px;
            background-color: red;
        }

        .wrapper{
            height: 300px;
            padding: 20px;
            border: 1px solid black;
        }

        .fixed-box{
            height: 50px;
            width: 100%;
            background-color: blueviolet;
            position: fixed;
        }

    </style>

</head>

<body>

    <div class="fixed-box">

    </div>

    <div class="wrapper">

    

    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
</div>
</body>

</html>
